modelbutton: Remove an unused field
authorMatthias Clasen <mclasen@redhat.com>
Mon, 21 Dec 2020 22:43:29 +0000 (17:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 21 Dec 2020 22:45:01 +0000 (17:45 -0500)
We're not using the centered field anymore.

gtk/gtkmodelbutton.c

index b644a7fe6137599b26255c8bb56a70230b21ca72..b6ce026da918859188961e498b11eda8767b874e 100644 (file)
@@ -73,7 +73,7 @@
  * and #GtkModelButton:icon properties.
  *
  * The appearance of model buttons can be influenced with the
- * #GtkModelButton:centered and #GtkModelButton:iconic properties.
+ * #GtkModelButton:iconic property.
  *
  * Model buttons have built-in support for submenus in #GtkPopoverMenu.
  * To make a GtkModelButton that opens a submenu when activated, set
@@ -177,7 +177,6 @@ struct _GtkModelButton
   GtkEventController *controller;
 
   guint active : 1;
-  guint centered : 1;
   guint iconic : 1;
   guint keep_open : 1;
 };
@@ -760,8 +759,6 @@ gtk_model_button_set_iconic (GtkModelButton *self,
       gtk_widget_add_css_class (widget, "flat");
     }
 
-  self->centered = iconic;
-
   if (!iconic)
     {
       if (self->start_indicator)